package com.neusoft.bizcore.notice.notification.model;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.MappedSuperclass;

import com.neusoft.bizcore.notice.notification.model.enums.SendStatus;
import com.neusoft.bizcore.web.jpa.model.AbstractModel;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
@MappedSuperclass
public abstract class SendMsgStatus extends AbstractModel {
    private static final long serialVersionUID = -4123142913445414143L;

    /**
     * 发送状态
     */
    @Enumerated(EnumType.STRING)
    @Column(nullable = false, length = 8)
    private SendStatus status = SendStatus.success;

    /**
     * 错误信息
     */
    @Column(nullable = false, length = 1023)
    private String errorMsg;
}
